/**
 * Created with  SublimeText
 * @Author:      Lyle
 * @DateTime:    2017-01-09 23:07:59
 * @Description: 
 */

import React, { Component, PropTypes } from 'react'

class Error extends Component {

    constructor(props) {
        super(props);
        console.log(this.props);

        if (this.props.param == '403') {
            window.location.href = '#home';
        }
    }

    render() {
        //let str = this.props.param
        return (
            <div id='error' className='module'>
                <div className='errorLayout'>
                    {this.props.param}
                </div>
            </div>
        )
    }
}

export default Error
